<template>
  <div>
    <van-button type="default">默认按钮</van-button>
<van-button type="primary">主要按钮</van-button>
<van-button type="info">信息按钮</van-button>
<van-button type="warning">警告按钮</van-button>
<van-button type="danger">危险按钮</van-button>
  </div>
</template>

<script>
import { text } from './api/index'
export default {
  async created () {
    const [err, res] = await text()
    if (err)console.error('的登录')// 泡出红色
    else console.error(res)
  }
}
</script>

<style>

</style>
